import React, { Component } from 'react'
import checkProp from 'prop-types'
export default class Nav extends Component {


  // 属性校验
  static propTypes = {
    title:checkProp.string,
    leftshow:checkProp.bool
  }
  // 默认属性
  static defaultProps = {
    title:'默认标题',
    leftshow:checkProp.bool
  }
  render() {
    return (
      <div>Nav
        <div>
          {this.props.title}
        </div>
      </div>
    )
  }
}
